package com.wl.api.model.system;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.wl.api.dto.system.SecurityModuleDTO;

/**
 *
 * 
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "security_module")
@Builder
public class SecurityModule implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/**  */
	@TableId(type = IdType.AUTO)
	private Long id;

	/**  */
	private String description;

	/**  */
	private String name;

	/**  */
	private Integer priority;

	/**  */
	private String url;

	/**  */
	@TableField(value = "parent_id")
	private Long parentId;

	/**  */
	private String sn;
	
	@TableField(value = "update_id")
	private Long updateId;
	
	@TableField(value = "update_user")
	private String updateUser;
	
	public SecurityModule buildMsg(String updateUser, Long updateId) {
		this.updateUser = updateUser;
		this.updateId = updateId;
		return this;
	}

}
